-- GENERATED SPELL FOR [Tunnel Rat Kobold] --


function spell0_1202(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_1202', 544, 1)
end

function Sorts_1202(pUnit, Event)
local choix_sorts_1202 = math.random(0, 0)
if choix_sorts_1202 == 0 then
pUnit:RegisterEvent('spell0_1202', 1, 1)
end
end

function mob1202_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1202', math.random(1500, 3000), 1)
end

function mob1202_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1202_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1202_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1202, 1, 'mob1202_Action')
RegisterUnitEvent(1202, 2, 'mob1202_Leave')
RegisterUnitEvent(1202, 3, 'mob1202_Kill')
RegisterUnitEvent(1202, 4, 'mob1202_Die')
